package what.the.fun.jdbc;


import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import what.the.fun.domain.AnswerStatistic;

public class AnswerStatisticRowMapper implements RowMapper<AnswerStatistic>{

	@Override
	public AnswerStatistic mapRow(ResultSet arg0, int arg1) throws SQLException {
		AnswerStatisticExtractor extractor = new AnswerStatisticExtractor();
		return extractor.extractData(arg0);
	}

}
